class Student(object):

    def __init__(self, name, score):
        self.__name = name
        self.__score = score

    def print_score(self):
        print(f'姓名：{self.__name}，成绩：{self.__score}')

    def set_score(self, score):
        if 0 <= score <= 100:
            self.__score = score
        else:
            raise ValueError('bad Score')

    def get_score(self):
        return self.__score


stu_1 = Student('tom', '66')
stu_2 = Student('lily', '89')

stu_1.print_score()
stu_2.print_score()

print(stu_1.get_score())

stu_1.set_score(101)
